
//
//  LLSearchView.m
//  HYMiRabbit
//
//  Created by haya on 2018/11/27.
//  Copyright © 2018年 haya. All rights reserved.
//

#import "LLSearchView.h"

@implementation LLSearchView


- (instancetype)init{
    self = [super init];
    if (self) {
        [self setup];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

-(void)setup{
    self.iamgebutton = [LLInitBaseViewTool buttonWithTitle:nil image:@"search_128px_1223096_easyicon.net 拷贝 2" titleColor:LLColorRGBLightGray font:12];
    self.iamgebutton.frame = CGRectMake(5, 0, self.iamgebutton.imageView.image.size.width, 30);
    self.iamgebutton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    [self addSubview:self.iamgebutton];
    
    self.searchTxt = [LLInitBaseViewTool creatRouteTextField:nil font:12 SubTitle:@"搜索教练/课程" textColor:LLColorRGB(160) tintColor:LLColorRGB(160)];
    self.searchTxt.frame = CGRectMake(10+self.iamgebutton.imageView.image.size.width, 0, self.width-20-self.iamgebutton.imageView.image.size.width, 30);
    self.searchTxt.clearButtonMode = UITextFieldViewModeWhileEditing;
    [self addSubview:self.searchTxt];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
